import 'package:get/get.dart';

import '../../utils/locale_controller.dart';

class GetSplashLogic extends GetxController {
  void onInit() async {
    super.onInit();

    LocaleController lc = Get.find();
    await lc.initLanguage();

    //模拟广告页两秒后跳转传参
    Future.delayed(const Duration(seconds: 3), () async {
      if (false) {
        Get.toNamed('/home');
      } else {
        Get.toNamed('/login');
      }
    });
  }
}
